package com.bsj.power.system.web;

import cn.dev33.satoken.annotation.SaCheckPermission;
import com.bsj.power.common.config.global.JsonResult;
import com.bsj.power.common.def.vo.video.log.SystemOpLogListVO;
import com.bsj.power.common.def.vo.video.log.SystemOpLogSearchVO;
import com.bsj.power.system.service.ISystemOpLogService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author : zhuojie.c
 * @version V1.0
 * @Description: TODO
 * @date Date : 2024年08月13日
 * @menu 登录登出日志模块（数据记录与审计）
 */
@Slf4j
@RestController
@RequestMapping("/system/systemOpLog")
//@SaCheckPermission("/master/system/systemOpLog")
public class SystemOpLogController {

    @Autowired
    private ISystemOpLogService systemOpLogService;

    /**
     * 日志列表
     *
     * @param systemOpLogSearchVO
     * @return
     */
    @GetMapping("/systemOpLogList")
    @Deprecated
    public JsonResult<List<SystemOpLogListVO>> videoOpLogList(@Validated SystemOpLogSearchVO systemOpLogSearchVO) {
        return systemOpLogService.systemOpLogList(systemOpLogSearchVO);
    }
}
